<template>
  <div>
    <!-- 头部登录 -->
    <div>
            <div class="heade">
                <i class="close"></i>
                <h2 class="l-txt">设置</h2>
		       </div>
						<em class="l-line"></em>
            <div class="about">关于乐淘村</div>
	          <a href="javascript:;" class="btn-login" id="loginBtn" @click="hanldeClose()">退出登录</a>
    </div>
        <div class="flylogin" v-show="istrueclose">退出成功,即将跳转首页</div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      istrueclose: false
    }
  },
  methods: {
    hanldeClose () {
      this.istrueclose = true
      this.$router.back('./home')
    }
  }
}
</script>
<style lang="scss">
  body{
    background-color: #f0f0f0;
  }
  .heade{
           background-color: white;
           display:flex;
           height:50px;
           align-items: center;
           position: relative;
        .close{
            height:20px;
            width:20px;
            display: block;
            background:url("https://m.lecuntao.com/resource/images/btn_back.png?lv=09b14befba") no-repeat center center;
            background-size:100% 100%;
            position: absolute;
            left: 10px;
        }

        .l-txt{
            font-size: 18px;
            margin:0px auto;
            font-weight: normal;
            line-height: 100%;
        }
     }
     .l-line{
                    width: 100%;
                    height: 0.02rem;
                    background: #ccc;
                    display: block;
                }
      .about{
           display:flex;
           height:50px;
           align-items: center;
           font-size: 16px;
           padding-left: 15px;
           background:url("https://m.lecuntao.com/resource/images/irt.png?lv=cb30aa58fb") no-repeat 95% center;
           background-size: 10px 10px;
           background-color: white;

      }
      .btn-login{
                    width: 95%;
                    margin:0px auto;
                    color: #fff;
                    background: #f81234;
                    height: 50px;
                    font-size: 16px;
                    text-align: center;
                    line-height: 50px;
                    margin-top: 0.5rem;
                    display: block;
                    border-radius: 0.08rem;
                     text-decoration: none;
                }
                  .flylogin{
              width: 200px;
              height:50px;
              background:red;
              position: fixed;
              top:40%;
              left:25%;
              font-size: 18px;
              color:white;
              border-radius:10px;
              text-align: center;
              padding-top:15px;
    }
</style>
